package cn.tedu._06article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class insuser {
    @Schema(description = "用户名", required = true)
    @Pattern(regexp = "^[a-zA-Z0-9]{3,10}$", message = "用户名格式错误")
private String username;
    @Schema(description = "密码", required = true)
private String password;
    @Schema(description = "昵称", required = true)
private String nickname;
}
